export enum OwnType {
  group,
  user
}

export enum ContentType {
  directory,
  file
}
export interface UserFile {
  userId: number
  folderId: number
}

export interface Folder {
  typeId: number
  userId: number
  folderId: number
}

export interface FileUpload extends UserFile {
  file: File
  chunk?: Blob // 可选的分片
  index?: number // 分片的索引
  totalChunks?: number // 总分片数
  fileId?: string // 文件的唯一标识符
}
export interface ChunkInfo {
  totalChunks: number
  fileId: string
  originalName: string
  userId: number
  folderId: number
}
export interface Chunks extends UserFile {
  fileId: string
}
export interface AddFolder {
  name: string
  userId: number
  folderId: number
}
export interface fileInfo {
  id: number
  name: string
  size: number
  createTime: string
  fileType: string
  type: string
  typeId: number
  path: string
  url: string
  isCheck: boolean
}
export interface UpdateFolderId {
  folderList: number[]
  fileList: number[]
  folderId?: number
}
